/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.account;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.account.SysRoleUser;

/**
 * @author CSJ (email:raulcsj@163.com)
 * @since 2012-12-10
 */
public interface SysRoleUserService {
    /****************************************
     * Insert a instace of SysRoleUser
     ****************************************/
    void insert(SysRoleUser sysroleuser) throws Exception;

    /****************************************
     * Insert instaces of SysRoleUser
     ****************************************/
    void batchInsert(List<?> sysroleuserList) throws Exception;

    /****************************************
     * Delete a instace of SysRoleUser
     ****************************************/
    void delete(SysRoleUser sysroleuser) throws Exception;

    /****************************************
     * Delete instaces of SysRoleUser
     ****************************************/
    void batchDelete(SysRoleUser sysroleuser) throws Exception;

    /****************************************
     * Update a instace of SysRoleUser
     ****************************************/
    void update(SysRoleUser sysroleuser) throws Exception;

    /****************************************
     * Query instaces of SysRoleUser
     ****************************************/
    List<BaseModel> queryAsList(SysRoleUser sysroleuser) throws Exception;

    /****************************************
     * Query a instaces of SysRoleUser
     ****************************************/
    BaseModel queryAsObject(SysRoleUser sysroleuser) throws Exception;
}
